package com.example.dto;

import com.example.domain.Dish;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class DishCopiesDto {
    private Long setmealId;
    private Long dishId;
    private String name;   //菜品名称
    private BigDecimal price;  //菜品价格
    private Integer copies;   //份数

    public void gain(Dish dish){
        this.dishId=dish.getId();
        this.name=dish.getName();
        this.price=dish.getPrice();
        this.copies=1;
    }

}
